home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / maple_st.swf / scripts / DefineSprite_681 / frame_8 / DoAction_2.as next >
Encoding:
Text File  |  2010-04-12  |  739 b   |  23 lines

  1. _root.arrowimg = "dragon";
  2. _root.player.ani.gotoAndStop(10);
  3. duplicateMovieClip("_root.arrows.arrow","arrow" + _root.i,16384 + _root.i);
  4. arrown = "arrow" + _root.i;
  5. _root.i += 1;
  6. arrowshooted += 1;
  7. arrowy = random(4);
  8. if(_root.player._xscale >= 0)
  9. {
  10.    _root.arrows[arrown]._x = _root.player._x - 40.05;
  11.    _root.arrows[arrown]._xscale = _root.player._xscale;
  12.    _root.arrows[arrown]._y = _root.player._y + 46.65;
  13.    _root.arrows[arrown]._y -= arrowy;
  14. }
  15. else if(_root.player._xscale < 0)
  16. {
  17.    _root.arrows[arrown]._x = _root.player._x + 40.05;
  18.    _root.arrows[arrown]._xscale = _root.player._xscale;
  19.    _root.arrows[arrown]._y = _root.player._y + 46.65;
  20.    _root.arrows[arrown]._y -= arrowy;
  21. }
  22. _root.alerttime = 300;
  23.